#include "CreateVomitMessage.h"
#include "Entity.h"
#include "MessageID.h"


CreateVomitMessage::CreateVomitMessage(Entity* Owner) 
: SGD::Message(MessageID::MSG_CREATE_VOMIT)
{
	m_pOwner = Owner;
	Owner->AddRef();
}


CreateVomitMessage::~CreateVomitMessage()
{
	if (m_pOwner != nullptr)
	{
		m_pOwner->Release();
		m_pOwner = nullptr;
	}
}
